home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
pcbdir15.zip
/
PCBDIRSZ.DOC
< prev
next >
Wrap
Text File
|
1992-02-14
|
6KB
|
146 lines
PCBDIRSZ 'PCBoard DIRectory Statistics'
Version 1.5
by Barry Young
System Support BBS
PCBoard 3-node vrs 14.5a
Westminster, CO (303) 469-9359
Thank you for downloading this file and checking it out!
This program had been designed for my personal use, but decided
to make it a PD 'Public Domain' program for any PCBoard 14.x+
SysOp to use. You can use it for your own personal interest, or
you can have the program redirect the output to an ascii file,
which could be used as one of your Bulletins on the BBS. It is a
simple program to use, although it will require creating a simple
configuration program) that will point to your DIR.LST and the
location of your DIRxx files.
The basic purpose of this program is to read your
DIRectories files and summarize the total number of files and
the kilobytes used of harddisk space for each DIRectory. It will
also keep sub-totals as it goes of both # of files and kilobytes
used. There may be other ways to determine this, but I have found
this program to be invaluable to me by keeping me informed of how
much space is being used on my harddisk.
The files included in this ZIP'ped package are:
PCBDIRSZ.EXE (main program)
PCBDIRSZ.CFG (sample configuration file)
PCBDIRSZ.DOC (this document file that you are reading)
BLT (sample bulletin created from the program)
_______________To get started:_______________
The PCBDIRSZ.EXE program should either be in your BBS
directory ( \PCB ) or in your computer PATH. You will also
need to create your own PCBDIRSZ.CFG file or modify the one that
I have provided. This file will contain one or more lines.
D:\PCB\GEN\DIR.LST < required
DIR3 < optional line to exclude DIR3 from report
DIR18 < optional line to exclude DIR18 from report
Here is an example of how I have mine setup. My BBS system is
on drive D: and the main PCBOARD directory is \PCB.
I have included the one line in your sample (provided)
PCBDIRSZ.CFG file. This required line (DIR.LST including the
drive\path) tells the program where to find your DIRectory
.LST file. Any following lines will list the DIRxx of any
DIRectory that you don't want included in the report.
Example: if 2nd line had DIR18 (no drive or path included), this
would exclude DIR18 from being included in your report. I don't
include DIR0 or PRIVATE DIRectories in the program, since most
SysOps don't want the Private Upload Directory to be listed.
This file can be located anywhere, but it must be in the
directory that you are running it from. The simplest way is to
have both the files in your \PCB directory.
Normally, you would have this PCBDIRSZ.EXE program run once
a day. I have it run during my morning event. It can, however,be
run as many times as you want. I have incorporated File Sharing
(read-only, lock-mode), so it can be run with the other nodes
being used. It will only be sharing the DIR.LST and DIRxx files
so it can be run with the other nodes looking at the files.
If you want to include the displayed output into a bulletin,
then you will need to redirect the output with the > command when
running the program. I have mine being used as:
PCBDIRSZ > D:\PCB\GEN\BLT10
That redirects the output automatically to my bulletin #10.
I have a few other little PCBoard utilities that I have
written, but have not released them to the Public Domain at this
time. This will be my 2nd released PD program for anyone seeing a
need for it. Since I like to tinker with the programs, there may
be updated versions of this program. I also ask other people for
their opinions of it and may make enhancements upon their sugges-
tions.
You can find this program, and any possible updates to it on
my board, relocated to Westminster, CO.
System Support BBS (303)-469-9359 SysOp Barry Young
If you have any suggestions, feel free to let me know. I am
also a SmartNet Node and can be left msgs in the SysOps confer-
ence.
CHANGES:
04/24/91 Version 1.1
This program had originally been hard-coded for my BBS
setup. There was a condition in the program that wanted to go
through all of my 18 DIRectory files. For people with less than
18 directories, it would create the remaining DIRectories up to
18 with blank fields. If you had more than 18, it would probably
have stopped at 18. FIXED
The other problem found was truncating the 1st character
off the DIR Description of each DIR. FIXED
04/25/91 Version 1.2 <file now called PCBDIRSB.ZIP>
There was some redundant code in the program left from
my hard-coded version removed.
The PCBDIRSZ.CFG file now only requires the 1st line
that tells the program where to find the DIR.LST file. On my
BBS, it has D:\PCB\GEN\DIR.LST.
If you want to exclude any DIR file from being reported,
they will need to be listed after the 1st line of the .CFG file.
Just put the DIRxx on each line.
Example: to exclude DIR2 and DIR18, you will have two lines added:
DIR2
DIR18
05/02/91 Version 1.3 < file now called PCBDIRSC.ZIP>
The program was only checking .EXE and .ZIP files to be
counted. That was all that I allowed on my board. It now will
count those two plus LZH, GIF, ARC, COM, PAK, and PCX files. If
there are others to be considered, please let me know
05/05/91 Version 1.4 < file now called PCBDIRSD.ZIP>
If a DIRxx file was to be excluded, it was still going
through the file although it would properly bypass it. FIXED.
If a DIRxx file had SORT set to 0, it was somehow dropping
the next character off each following DIR information. Unknown
reason, but kludge fix was incorporated to correct it.
05/15/92 Version 1.5 < file now called PCBDIR15.ZIP>
Minor change by adding PCBoard @ANSI color codes.